#ifndef COMMON_H
#define COMMON_H

#include "kservice.h"

int Float2Str(float fNum,char *str,int dotsize);

void QuickSort(int *list,int m,int n);

float Str2Float(char* pstrfloat);

void dec2bcd(unsigned int dec,unsigned char *bcd,unsigned int len);
int bcd2dec(unsigned char *bcd,unsigned int len);

int yln_atoi(char *s);

u8 hex2bcd(u8 val);
unsigned char bcd2hex(unsigned char val);

uint32_t hextoDec(const uint8_t* _hex,int len);
#endif
